/**
 * 
 */
package orion.jarvis.task.event;


/**
 * @author Ted
 * 
 */
public class TaskEventCategory  {

	public static final TaskEventCategory BEFORE_CREATE = new TaskEventCategory("Before create task.");
	public static final TaskEventCategory AFTER_CREATE = new TaskEventCategory("After create task.");
	public static final TaskEventCategory BEFORE_UPDATE = new TaskEventCategory("Before update task.");
	public static final TaskEventCategory AFTER_UPDATE = new TaskEventCategory("After update task.");
	public static final TaskEventCategory BEFORE_FINISH = new TaskEventCategory("Before finish task.");
	public static final TaskEventCategory AFTER_FINISH = new TaskEventCategory("After finish task.");
	public static final TaskEventCategory BEFORE_CLOSE = new TaskEventCategory("Before close task.");
	public static final TaskEventCategory AFTER_CLOSE = new TaskEventCategory("After close task.");
	public static final TaskEventCategory BEFORE_FIND = new TaskEventCategory("Before find task.");
	public static final TaskEventCategory AFTER_FIND = new TaskEventCategory("After find task.");
	public static final TaskEventCategory BEFORE_GET = new TaskEventCategory("Before get task.");
	public static final TaskEventCategory AFTER_GET = new TaskEventCategory("After get task.");
	public static final TaskEventCategory[] CATEGORYS = new TaskEventCategory[] { BEFORE_CREATE, AFTER_CREATE, BEFORE_UPDATE,
			AFTER_UPDATE, BEFORE_FINISH, AFTER_FINISH, BEFORE_CLOSE, AFTER_CLOSE, BEFORE_FIND, AFTER_FIND, BEFORE_GET, AFTER_GET };
	private final String desc;

	private TaskEventCategory(String desc) {
		this.desc = desc;
	};

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.google.code.alfred.task.event.TaskEventCategory#isEqual(com.google
	 * .code.alfred.task.event.TaskEventCategory)
	 */
	public boolean isEqual(TaskEventCategory category) {
		if (category instanceof TaskEventCategory)
			return category == this;
		else
			return false;
	}

	public String getDesc() {
		return desc;
	}

}
